package com.bluesky.plum.uimodels.render.swing.components.menu;

import javax.swing.JMenu;
import javax.swing.JMenuBar;

public class SMenuBar extends
		com.bluesky.plum.uimodels.standard.components.menu.MenuBar {

	protected JMenuBar menuBar;

	public SMenuBar() {
		menuBar = new JMenuBar();
	}

	@Override
	public void addMenu(
			com.bluesky.plum.uimodels.standard.components.menu.Menu menu) {
		super.addMenu(menu);

		menuBar.add((JMenu) menu.getNativeComponent());
	}

	@Override
	public Object getNativeComponent() {

		return menuBar;
	}
}
